package population.populationFindPredicates;

import character.Character;

/**
 * Find all the characters that are in labor.
 * @author pcdejager
 */
public class FindInLabor implements PopulationFindPredicate {
    /**
     * Check if a character is in labor.
     * @param c The character to test
     * @return True if in labor, else false
     */
    public final boolean check(final Character c) {
        if (c.isPregnant()) {
            return c.isInLabor();
        }
        return false;
    }
}
